# -*- coding;utf-8 -*-
"""
File name : uploadfile.PY
Program IDE : PyCharm
Create file time: 2023/2/20 12:42
File Create By Author : 朱清闯
"""
import time
import numpy as np


def get_new_name():
    # 前面是file_type+年月日时分秒
    new_name = time.strftime('%Y%m%d%H%M%S', time.localtime())
    # 最后是5个随机数字d
    # Python中的numpy库中的random.randint(a, b, n)表示随机生成n个大于等于a，小于b的整数
    rand_list = np.random.randint(0, 10, 5)
    for i in rand_list:
        new_name += str(i)
    # 返回字符串
    return new_name
